package processing.test.mechaapp;
//game;

public class Carbon extends Atom {
		
	public Carbon(float x, float y, int i, int j){
		xChord = x;
		yChord = y;
		ith = i;
		jth = j;
		maxBonds = 4;
		numBonds = 0;
		highlight = false;
		isVisited = false;
		molecule = new Molecule(this);
		bonds = new Atom[maxBonds];
		doublebonds = new Atom[maxBonds/2];
	}
	
	public void drawMe(){
		applet.stroke(255);
		if(highlight){
			applet.stroke(255);
			applet.fill(0,100,255);
			applet.ellipse(xChord, yChord, size+5, size+5);
		}
		applet.fill(255,255,0); //blue circle
		applet.stroke(0);
		applet.ellipse(xChord, yChord, size, size);
	}
	
	
	//used for debugging.
	public String toString(){
		return "Carbon Atom\nxChord="+xChord+" yChord="+yChord+" numBonds ="+numBonds+
				"\nith = "+ith+" jth = "+jth;
	}
}
